sched: move pCPU initialization in a helper
authorDario Faggioli <dario.faggioli@citrix.com>
Thu, 7 Apr 2016 22:03:21 +0000 (00:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2016 22:03:21 +0000 (00:03 +0200)
commit7760ff0d359019a8e1706562f2e759de7e3e9824
tree1174216164d36049d9ac9ae68d1db345a68658ca
parent64269d936584c29de951c6613bf618640832b9a6
sched: move pCPU initialization in a helper

That will turn out useful in following patches, where such
code will need to be called more than just once. Create an
helper now, and move the code there, to avoid mixing code
motion and functional changes later.

In Credit2, some style cleanup is also done.

No functional change intended.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c